import 'osc_author.dart';

class OscFavoriteReverseResultEntity {
	int favCount;
	OscAuthor authorUser;
	String favDate;
	int id;
	String body;
	String title;
	int type;
	bool favorite;
	String url;
	int commentCount;

	OscFavoriteReverseResultEntity({this.favCount, this.authorUser, this.favDate, this.id, this.body, this.title, this.type, this.favorite, this.url, this.commentCount});

	OscFavoriteReverseResultEntity.fromJson(Map<String, dynamic> json) {
		favCount = json['favCount'];
		authorUser = json['authorUser'] != null ? new OscAuthor.fromJson(json['authorUser']) : null;
		favDate = json['favDate'];
		id = json['id'];
		body = json['body'];
		title = json['title'];
		type = json['type'];
		favorite = json['favorite'];
		url = json['url'];
		commentCount = json['commentCount'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['favCount'] = this.favCount;
		if (this.authorUser != null) {
      data['authorUser'] = this.authorUser.toJson();
    }
		data['favDate'] = this.favDate;
		data['id'] = this.id;
		data['body'] = this.body;
		data['title'] = this.title;
		data['type'] = this.type;
		data['favorite'] = this.favorite;
		data['url'] = this.url;
		data['commentCount'] = this.commentCount;
		return data;
	}
}
